package com.hy.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hy.pojeVo.VaccinationAppointmentVO;
import com.hy.pojo.vaccine.VaccinationAppointment;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author Lenovo
 * @description 针对表【vaccination_appointment(疫苗预约表：记录用户的疫苗预约信息，包括预约时间、接种记录、支付信息等)】的数据库操作Mapper
 * @createDate 2025-03-17 15:00:26
 * @Entity com.hy.medicine.pojo.VaccinationAppointment
 */
@Mapper
public interface VaccinationAppointmentMapper extends BaseMapper<VaccinationAppointment> {
    /**
     * 分页模糊查询预约信息
     */
    List<VaccinationAppointment> searchAppointments(@Param("keyword") String keyword);

    /**
     * 通过用户ID查询预约详细信息（包含疫苗和医院信息）
     */
    List<VaccinationAppointmentVO> getAppointmentDetailsByUserId(@Param("userId") Long userId);
}




